<%@include file="/WEB-INF/common/taglibs.jsp"%>
<script>
$(document).ready(function(){
	$("form.form-horizontal.seperator[method='post']").validate();
});
	
$(document).ready(function(){

	
	<c:if test="${entity.id ne null}">

	<c:forEach  var="option" items="${entity.attrOptions}">
 		$("input[name='optionIds'][value=${option.id}]").attr('checked','checked').uniform();	
 	 </c:forEach>
 
 	</c:if>
	
});





 </script>
	
	
 </script>
<div class="row-fluid">

	<div class="span12">

		<div class="page-header">
			<h4>Option Set </h4>
		</div>

<form class="form-horizontal seperator" method="post">
<!--name --><div class="form-row row-fluid"><div class="span12"><div class="row-fluid"><label class="form-label span3" for="name">Name :</label><input class="span4" id="name" name="name"   type="text" value="${entity.name}" /></div></div></div>
  <div class="form-row row-fluid">
                                                    <label class="form-label span3 " for="checkboxes">Options </label>
                                                    
                                                    
                                                    
                                                    <c:forEach items="${options}" var="option">
                                                    <div class="left marginT5 marginR10">
                                                        <input type="checkbox" name="optionIds" value="${option.id}"  class="styled" /> ${option.name}
                                                    </div>
                                                     
                                                    </c:forEach>
                                                 </div>






 




 <div class="form-row row-fluid">
				<div class="span12">
					<div class="row-fluid">
						<div class="form-actions">
							<div class="span3"></div>
							<div class="span4 controls">
								<button type="submit" class="btn btn-info marginR10">Save
									changes</button>
								<button class="btn btn-danger">Cancel</button>
							</div>
						</div>
					</div>
				</div>
			</div>
		</form>

	</div>
	<!-- End .span12 -->

</div>
<!-- End .row-fluid --> 

